<div id="advert-service">
  <?php if(!empty($data['discount-uri'])) : ?>
  <img width="300px" height="100px" src="<?php echo image_style_url('advert-service', $data['discount-uri']) ?>">
  <?php endif ?>
</div>
<div id="advert-sponsor">
  <?php if(!empty($data['sponsor-uri'])) : ?>
  <img width="300px" height="100px" src="<?php echo image_style_url('advert-service', $data['sponsor-uri']) ?>">
  <?php endif ?>
</div>